package cn.zz.comm.tool;

import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;

/**
 * @author zhongq
 * @since 2024/7/21
 */

@Component
@EnableAsync
public class AsyncTool {


	@Async
	public void task(Runnable runnable) {
		runnable.run();
	}

}